function graph=remove_diagonal(graph)
    for i = 1 : length(graph)
        graph(i,i)=0;
    end
end